package com.hundsun.fcp.adapter;

import java.util.ArrayList;

import android.content.Context;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import com.hundsun.fcp.R;
import com.hundsun.fcp.adapter.BankManagerAdapter.ViewHolder;
import com.hundsun.fcp.bean.MsgCenterBean;

public class MsgCenterAdapter extends Adapter<MsgCenterBean>{

	
	public MsgCenterAdapter(Context context) {
		super(context, R.layout.fcp_mine_msg_center_item);
	}

	@Override
	public View getView(int position, View convertView, ViewGroup parent) {
		ViewHolder holder = null;
		if(convertView == null){
			holder = new ViewHolder();
			convertView = mInflater.inflate(mLayoutResId, null);
			holder.mIsRead = (TextView) convertView.findViewById(R.id.tv_is_read);
			holder.mMsgTitle = (TextView) convertView.findViewById(R.id.tv_msg_title);
			holder.mMsgContent = (TextView) convertView.findViewById(R.id.tv_msg_content);
			convertView.setTag(holder) ;
		}else{
			holder = (ViewHolder) convertView.getTag() ;
		}
		return convertView;
	}
	
	@Override
	public int getCount() {
		
		return 3;
	}
	class ViewHolder{
		TextView mIsRead;
		TextView mMsgTitle;
		TextView mMsgContent;
		
	}

}
